package com.pro.common.service.admin.enums;

import com.pro.framework.api.enums.IEnumStr;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum EnumExecutorBlockStrategy implements IEnumStr {
    SERIAL_EXECUTION(0, "串行", "info"),
    DISCARD_LATER(1, "丢弃后续", "warning"),
    COVER_EARLY(2, "覆盖之前", "danger"),
    ;

    private final Integer value;
    private final String label;
    private final String color;

//    public static final Map<Integer, EnumExecutorBlockStrategy> MAP = IEnumInt.getMap(values());
//
//    @Override
//    public EnumExecutorBlockStrategy fromValueMap(Integer value) {
//        return MAP.get(value);
//    }
}
